

	<html>
		<head>
			<title></title>
		</head>
		<body>
		
		sss
	
	
	<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
	
	<script>
	var baseUrl=''
		$(function(){
		
		var wx=window.wx
		
		var url=window.location.href
		
		$.ajax({
			type:'GET',
			url:baseUrl+'/wechat/signature?url='+url,
			success:function(res){
			
				if(res.success){
						console.log(res)
						var params=res.params
						wx.config({
							debug:true,
							appId:params.appId,
							timestamp:params.timestamp,
							nonceStr:params.noncestr,
							signature:params.signature,
							jsApiList:[
								'chooseImage',
								'previewImage',
								'uploadImage',
								'downloadImage',
								'onMenuShareTimeline',
								'hideAllNonBaseMenuItem',
								'showMenuItems',
							]
							
						})
						
						wx.ready(function(){
							wx.hideAllNonBaseMenuItem()
							console.log('suc')
						})
						
						
				}
			}
		})
		
		
		
		
		
	})

		
	</script>
		</body>
	</html>

